
class Phone{
    String name;
    int age;
}
public class J03neicun {
    public static void main(String[] args) {
        Phone p1 = new Phone();
        p1.name = "三星";
        p1.age = 20;

        System.out.println("p1.name = " + p1.name);

        Phone p2 = new Phone();
        p2.name = "诺基亚6020";
        p2.age = 15;

        System.out.println("p2.name = " + p2.name);
        System.out.println("p1.name = " + p1.name);
        System.out.println("=====");
        Phone p3 = p2;
        p3.name = "华为";
        System.out.println("p2.name = " + p2.name);
    }
}
